﻿using DH.Service.Domain;
using DH.Service.Domain.Role;
using DH.Service.Domain.User;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace DH.Web.MVC
{
    /// <summary>
    /// 业务服务
    /// </summary>
    public static class InjectionServices
    {
        public static void Inject(this IServiceCollection service)
        {
            //service.AddScoped<UserService>();
            //service.AddScoped<AreaService>();
            //service.AddScoped<OrganizeService>();

            service.AddTransient<UserService>();
            service.AddTransient<AreaService>();
            service.AddTransient<OrganizeService>();
            service.AddTransient<RoleService>();
            service.AddTransient<CategoryService>();
            service.AddTransient<FeaturesService>();
            service.AddTransient<ButtonService>();
            service.AddTransient<UiFeaturesButtonService>();
            service.AddTransient<PrivilegeService>();
            service.AddTransient<MenuService>();

        }
    }
}
